package com.trkj.zzplus.ui.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;

import com.trkj.zzplus.R;

/**
 * Created by Linoer on 2016/6/10.
 */
public class MyBaseActivity extends AppCompatActivity {
    private ImageView ImgBack;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_base);
        initTopBar();
    }

    private void initTopBar() {
        ImgBack = (ImageView) findViewById(R.id.ui_goBack);
        ImgBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }
}
